//
//  MOScrollViewPlaceholder.h
//  WCImApp
//
//  Created by alfie on 2019/11/6.
//  Copyright © 2019 WCImApp. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^MOPlaceholderHandle)(void);
@class UIScrollView;

@interface MOScrollViewPlaceholder : NSObject

/** 是否显示占位图，默认YES,需要注意的是，一般情况下都需要调用reloadData方法才能生效*/
@property (assign, nonatomic) BOOL                shouldShow;

/** 是否使用占位图，默认YES */
@property (assign, nonatomic) BOOL                enable;

/**  占位图文字 */
@property (copy, nonatomic) NSString              *title;

/** 占位图图片 */
@property (copy, nonatomic) id                    image;

/** 占位图背景色 */
@property (strong, nonatomic) UIColor             *backgroundColor;

/** 是否显示占位图按钮，默认NO */
@property (assign, nonatomic) BOOL                showBtn;

/** 占位图按钮文字 默认 重新加载 */
@property (copy, nonatomic) NSString              *titleForBtn;

/** 按钮大小，宽度默认是自适应，高度32 */
@property (assign, nonatomic) CGSize              sizeForBtn;

/** 点击占位图按钮的回调 */
@property(nonatomic,copy) MOPlaceholderHandle     placeholderHandle;

/** 占位图与文字间隔，默认10 */
@property (assign, nonatomic) CGFloat             title_space_image;

/** 按钮与文字间隔，默认20 */
@property (assign, nonatomic) CGFloat             title_space_button;

/** 占位图整体垂直偏移量 */
@property (assign, nonatomic) CGFloat             offset;

/** tableView */
@property (weak, nonatomic) UIScrollView          *scrollView;

// 自定义中间的按钮
- (void)replaceButtonWithCustomView:(UIView *)customView;

@end


